﻿<!DOCTYPE html >
<html  lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>编辑角色</title>
		<link rel="stylesheet"
			href="../../css/table.css" type="text/css"/>
		<script type="text/javascript" src="../../javascript/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="../../javascript/right_list_information.js"></script>
		<style type="text/css">
			.parent {
				margin-left: 50px;
			}
			.children {
				margin-left: 20%;
			}
		</style>
	</head>
	<body>
		<form id="powerAction!doModifyRight" name="powerAction!doModifyRight" action="right_list_update2" method="post">
			<table width="100%">
				<tr>
					<td>
						<font color="black">您正在做的业务是：人力资源--权限管理--编辑角色</font>
					</td>
				</tr>
				<tr>
					<td align="right">
						<input type="submit" id="powerAction!doModifyRight_0" value="&#20445;&#23384;" class="BUTTON_STYLE1"/>

						<input type="button" value="返回" class="BUTTON_STYLE1"
							onclick="history.back()">
					</td>
				</tr>
			</table>
			<table width="100%" border="1" cellpadding=3 cellspacing=1
				bordercolorlight=#848284 bordercolordark=#eeeeee
				class="TABLE_STYLE1">
				<tr>
					<td class="TD_STYLE1">角色编号</td>
					<td class="TD_STYLE2" th:text="${con.major_id}"></td>
					<input type="hidden" name="major_id" th:value="${con.major_id}"/>
					<td class="TD_STYLE1">角色名称</td>
					<td class="TD_STYLE2" colspan="3">
						<input type="text" class="INPUT_STYLE2" th:value="${con.major_name}"
							name="major_name"/>

					</td>
				</tr>
				<tr>
					<td class="TD_STYLE1">角色说明</td>
					<td class="TD_STYLE2">
						<input type="text" class="INPUT_STYLE2"  th:value="${con.xq}"
							name="xq"/>
					</td>

					<td class="TD_STYLE1">角色所属类别</td>
					<td class="TD_STYLE2">
						<select name="major_kind_id">
							<div th:each="f:${configMajorKinds}">
								<option th:value="${f.major_kind_id}" th:selected="${f.major_kind_id==con.major_kind_id}"
										th:text="${f.major_kind_name}"></option>
							</div>
						</select>
					</td>

					<td class="TD_STYLE1">角色是否可用</td>
					<td class="TD_STYLE2" >
						<select name="status" id="powerAction!doModifyRight_sysRole_roleFlag">
							<option value="1" th:selected="${1==con.status}" >是</option>
							<option value="0" th:selected="${0==con.status}">否</option>

</select>

					</td>
				</tr>
			</table>
			<hr/>



			
		</form>




	</body>
	
	
	
	<script type="text/javascript">
				function byDefault(){
				var arr=new Array();
				 
				
				 		arr[0]='L02';
					
				 		arr[1]='L0201';
					
				 		arr[2]='L0202';
					
				 		arr[3]='L0203';
					
				 		arr[4]='L0204';
					
				 		arr[5]='L0205';
					
				 		arr[6]='L020501';
					
				 		arr[7]='L020502';
					
				 		arr[8]='L020503';
					
					 var rightCodes=document.getElementsByName("rightCodes");
					 for(var j=0;j<arr.length;j++){
					 		for(var k=0;k<rightCodes.length;k++){	
					 				 		 		
					 				if(rightCodes[k].value==arr[j]){
					 					rightCodes[k].checked=true;
					 				} 
					 		}
					 }
				
				}
	
	window.onload=byDefault;
	</script>
	
	
	
</html>
